package com.whoimi.admin.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author whoimi
 * @since 2025-08-01T15:25:53.980324700
 */

@Table (name ="sys_dict_item",schema = "wiic_admin")
public class DictItem implements Serializable {

    @Serial
	private static final long serialVersionUID = 3359738897840870862L;

	/**
	 * 主键
	 */
	@Id
   	@Column("id")
	private Long id;

	/**
	 * 关联字典编码，与sys_dict表中的dict_code对应
	 */
   	@Column("dict_code")
	private String dictCode;

	/**
	 * 字典项值
	 */
   	@Column("value")
	private String value;

	/**
	 * 字典项标签
	 */
   	@Column("label")
	private String label;

	/**
	 * 标签类型，用于前端样式展示（如success、warning等）
	 */
   	@Column("tag_type")
	private String tagType;

	/**
	 * 状态（1-正常，0-禁用）
	 */
   	@Column("status")
	private Boolean status;

	/**
	 * 排序
	 */
   	@Column("sort")
	private Integer sort;

	/**
	 * 备注
	 */
   	@Column("remark")
	private String remark;

	/**
	 * 创建时间
	 */
   	@Column("create_time")
	private LocalDateTime createTime;

	/**
	 * 创建人ID
	 */
   	@Column("create_by")
	private Long createBy;

	/**
	 * 更新时间
	 */
   	@Column("update_time")
	private LocalDateTime updateTime;

	/**
	 * 修改人ID
	 */
   	@Column("update_by")
	private Long updateBy;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDictCode() {
		return this.dictCode;
	}

	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getTagType() {
		return this.tagType;
	}

	public void setTagType(String tagType) {
		this.tagType = tagType;
	}

	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public LocalDateTime getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public LocalDateTime getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdateBy() {
		return this.updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

}
